package com.zzyl.mapper;

import com.zzyl.entity.Bed;
import com.zzyl.vo.BedVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BedMapper {

    List<BedVo> getBedsByRoomId(Long roomId);

    void addBed(Bed bed);

    Bed findBedById(Integer id);

    void fixBed(Bed bed);



    Long countDiffBedNumber(String bedNumber, Long id);

    Bed countDiffBed(String bedNumber);

    int selStatus(Long id);

    Bed getBedById(Long id);

    int deleteBedById(Long id);
}

